<?php

use app\models\ArcKeyword;
use app\models\AsrSeriousness;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\ArcKeyword */
/* @var $form yii\widgets\ActiveForm */
$asr_name = new AsrSeriousness();
$data = $asr_name->find($model->seriousness_id)->all();

?>

<div class="arc-keyword-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'seriousness_id')->dropDownList(ArrayHelper::map($data,'id', 'names'));?>

    <div class="form-group">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
